<script setup lang="ts">
import { seoConfig } from '~/config/seo'

useSeoMeta({
  title: seoConfig.auth.captcha.title,
  description: seoConfig.auth.captcha.description,
  keywords: seoConfig.auth.captcha.keywords
})

const advantages = [
  { icon: 'lucide:shield-check', title: '智能防护', description: 'AI算法识别机器人，有效防止恶意攻击' },
  { icon: 'lucide:mouse-pointer-click', title: '行为验证', description: '基于用户行为分析，无需复杂操作' },
  { icon: 'lucide:zap', title: '快速验证', description: '毫秒级完成验证，用户体验流畅' },
  { icon: 'lucide:shield', title: '多重防护', description: '防爬虫、防刷单、防薅羊毛' },
  { icon: 'lucide:smartphone', title: '多端适配', description: '支持PC、H5、APP多种终端' },
  { icon: 'lucide:trending-up', title: '转化提升', description: '友好的验证方式，提升转化率' }
]

const scenarios = [
  { icon: 'lucide:user-plus', title: '用户注册', description: '防止批量注册、恶意注册、薅羊毛', color: 'from-blue-500 to-cyan-500' },
  { icon: 'lucide:log-in', title: '账号登录', description: '防止暴力破解、撞库攻击、盗号' , color: 'from-purple-500 to-pink-500' },
  { icon: 'lucide:send', title: '短信发送', description: '防止短信轰炸、恶意刷单、接口滥用', color: 'from-green-500 to-emerald-500' },
  { icon: 'lucide:message-square', title: '评论发布', description: '防止垃圾评论、恶意灌水、广告刷屏', color: 'from-orange-500 to-red-500' },
  { icon: 'lucide:vote', title: '投票活动', description: '防止刷票作弊、恶意投票、虚假数据', color: 'from-indigo-500 to-blue-500' },
  { icon: 'lucide:shopping-cart', title: '交易下单', description: '防止刷单、恶意下单、黄牛抢购', color: 'from-yellow-500 to-orange-500' }
]
</script>

<template>
  <div class="min-h-screen">
    <ProductHero
      title="行为验证码"
      description="智能行为验证，有效防止机器人攻击，保障业务安全，同时提供良好的用户体验"
    />
    <section class="py-10 md:py-15 bg-gray-50">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-8 md:mb-10">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">产品优势</h2>
          <p class="text-lg text-gray-600">智能防护，体验友好</p>
        </div>
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div v-for="(advantage, index) in advantages" :key="index" class="bg-white rounded-2xl p-6 md:p-8 shadow-sm hover:shadow-lg transition-all group">
            <div class="w-14 h-14 bg-gradient-to-br from-orange-500 to-red-500 rounded-xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform">
              <Icon :name="advantage.icon" class="w-7 h-7 text-white" />
            </div>
            <h3 class="text-xl font-bold text-gray-900 mb-3">{{ advantage.title }}</h3>
            <p class="text-gray-600 leading-relaxed">{{ advantage.description }}</p>
          </div>
        </div>
      </div>
    </section>
    <section class="py-10 md:py-15 bg-white">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-8 md:mb-10">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">行业应用场景</h2>
          <p class="text-lg text-gray-600">保护业务安全，防止恶意攻击</p>
        </div>
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div v-for="(scenario, index) in scenarios" :key="index" class="group relative bg-white rounded-2xl p-6 md:p-8 border-2 border-gray-100 hover:border-transparent hover:shadow-xl transition-all overflow-hidden">
            <div class="absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity" :class="scenario.color" />
            <div class="relative">
              <div class="w-14 h-14 rounded-xl flex items-center justify-center mb-6 bg-gradient-to-br" :class="scenario.color">
                <Icon :name="scenario.icon" class="w-7 h-7 text-white" />
              </div>
              <h3 class="text-xl font-bold text-gray-900 mb-3">{{ scenario.title }}</h3>
              <p class="text-gray-600 leading-relaxed">{{ scenario.description }}</p>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- CTA 部分 -->
    <CallToAction />
  </div>
</template>
